<template>
    <div class="searchType tongYc">
        <Button :type="type==3?'primary':'default'"  @click="sL_tm(3)"
                class="marginB5 wcV otoqQ">申请人查询
        </Button>
        <Button :type="type==2?'primary':'default'"  @click="sL_tm(2)"
                class="marginB5 wcV otoqQ">申请/注册号查询
        </Button>
        <Button :type="type==1?'primary':'default'"  @click="sL_tm(1)"
                class="marginB5 wcV otoqQ">商标名称查询
        </Button>
        <Button :type="type==0?'primary':'default'"  @click="sL_tm(0)"
                class="marginB5 wcV ">商标成功率检索
        </Button>
        <Button :type="type==5?'primary':'default'"  @click="sL_tm(5)"
                class="marginB5 wcV ">图形查询
        </Button>
        <Button :type="type==4?'primary':'default'"  @click="sL_tm(4)"
                class="marginB5 wcV ">代理机构
        </Button>
    </div>
</template>

<script>
export default {
    name: "customBtnT",
    props:['type'],
    data(){
        return {}
    },

    methods:{
        sL_tm(type) {
            let placeholder='';
            if (type == 0) {
                placeholder = '请输入商标名称'
            } else if (type == 1) {
                placeholder = '请输入商标名称'
            } else if (type == 2) {
                placeholder = '请输入商标申请/注册号'
            } else if (type == 3) {
                placeholder = '请输入申请人名称'
            } else if (type == 4) {
                placeholder = '请输入代理机构名称'
            }else if(type == 5) {
                placeholder = '点击上传图片,自动检索商标'
            }
            this.$emit("select_type", {type,placeholder})
        },
    }
}
</script>

<style lang="less" scoped>
@import "../less/tongyc.less";
</style>